<script>
import {defineComponent} from 'vue'

export default defineComponent({
    name: "swiperCom",
    data(){
        return{
            name:'swiper',
        }
    },
    created() {
        this.$emit('fromSon',this.name)
    }
})
</script>

<template>
<div><div class="swiper">

</div></div>
</template>

<style scoped lang="less">
.swiper{
  width: 1200px;
  height: 300px;
  background-color: pink;
}
</style>